package cn.kgc.pojo;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.Date;

public class Device implements Serializable{

    private Integer id;
    private String deviceName;
    private String deviceModel;
    private Integer usage;
    private Double devicePrice;
    @JSONField(format = "yyyy-MM-dd")
    private Date purchaseTime;
    private String assetCode;
    private Integer period;


    public Device() {
    }

    public Device(Integer id, String deviceName, String deviceModel, Integer usage, Date purchaseTime, String assetCode, Double devicePrice, Integer period) {

        this.id = id;
        this.deviceName = deviceName;
        this.deviceModel = deviceModel;
        this.usage = usage;
        this.purchaseTime = purchaseTime;
        this.assetCode = assetCode;
        this.devicePrice = devicePrice;
        this.period = period;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getDeviceModel() {
        return deviceModel;
    }

    public void setDeviceModel(String deviceModel) {
        this.deviceModel = deviceModel;
    }

    public Integer getUsage() {
        return usage;
    }

    public void setUsage(Integer usage) {
        this.usage = usage;
    }

    public Date getPurchaseTime() {
        return purchaseTime;
    }

    public void setPurchaseTime(Date purchaseTime) {
        this.purchaseTime = purchaseTime;
    }

    public String getAssetCode() {
        return assetCode;
    }

    public void setAssetCode(String assetCode) {
        this.assetCode = assetCode;
    }

    public Double getDevicePrice() {
        return devicePrice;
    }

    public void setDevicePrice(Double devicePrice) {
        this.devicePrice = devicePrice;
    }

    public Integer getPeriod() {
        return period;
    }

    public void setPeriod(Integer period) {
        this.period = period;
    }
}
